#pragma once
#include "entt.hpp"

#include "Core/Time.h"
namespace Orange {

	class Entity;
	class ScenePanel;

	class Scene
	{
	public:
		Scene();
		~Scene();

		void OnSetViewportSize(uint32_t width, uint32_t height);
		void OnUpdate(Time detalTime);
		void DestroyEntity(Entity entity);
		Entity CreateEntity(const std::string& name = "");
		

	
	private:
		entt::registry m_Register;

		uint32_t m_ViewportWidth = 0, m_ViewportHeight = 0;

		friend class Entity;
		friend class ScenePanel;

	};
	

}